class Result < ActiveRecord::Base
  belongs_to :user

  def human_matched_words
    self[:matched_words].join(', ')
  end
end

# == Schema Information
#
# Table name: results
#
#  id            :integer          not null, primary key
#  user_id       :integer
#  number        :string(255)
#  matched_words :string(255)      default([]), is an Array
#  created_at    :datetime
#  updated_at    :datetime
#
